package com.ruin.tech.ahri.service;

import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * @program ahri
 * @description: 上传接口
 * @author: ruin
 * @create: 2019/11/28 10:56
 */
public interface IUploadService {

    /**
     * @description: 上传头像保存
     * @param: [file,basePath,id]
     * @return: String
     * @author: ruin
     * @date: 2019/11/26
     */
    String saveAvatar(MultipartFile file, Long id) throws Exception;
    
    /**
    * @description: 上传视频保存
    * @param: [file, basePath]
    * @return: java.lang.String
    * @author: ruin
    * @date: 2019/11/28
    */
    String saveVideo(MultipartFile file) throws Exception;
    
    /**
    * @description: 上传文章图片
    * @param: [file, basePath]
    * @return: java.lang.String
    * @author: ruin
    * @date: 2019/12/4
    */
    String saveArticleImg(MultipartFile file) throws Exception;
}
